package com.usian.apis.admin;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;

public interface AdChannelControllerApi {

    /*根据名称分页查询*/
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    /*添加*/
    public ResponseResult insert(AdChannel channel);

    /*修改*/
    public ResponseResult edit(AdChannel channel);

    /*删除*/
    public ResponseResult delete(Integer id);

    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();
}
